<!DOCTYPE html>
<html data-ng-controller="mainCtrl">
<head lang="zh">
    <meta charset="UTF-8">
    ${require('mypublic/inc/head.html')}
</head>
<body>
${require('mypublic/inc/seajs.html')}
${require('mypublic/inc/top.html')}
${require('@yunke/core/html/server_time.html')}
<div class="layout">
    <!-- 容器 [[-->
    <div class="container">
        <div class="wrap clearfix">
            <div class="pt10">
                ${require('mypublic/inc/left_side.html')}
            </div>
            <div class="content">


                <div class="section-table mt20">
                    <div class="table-header lh30 pb5 clearfix">
                        <span class="fl f14">新闻编辑</span>
                        <div class="fr btn-group" ng-if="userAuthList.indexOf('0701') !== -1">
                            <button class="btn" id="save">保存</button>
                            <button class="btn btn-yellow" id="save_create">保存并新建</button>
                            <button class="btn btn-yellow" id="save_close">保存并关闭</button>
                            <button ng-show="data.a_id" class="btn btn-yellow" id="save_copy">保存并复制</button>
                            <button class="btn" id="no_save">取消</button>
                        </div>
                    </div>
                    <div class="mt10">
                        <div style="width:70%;float:left;">
                            <script type="text/plain" id="meEditor"></script>
                        </div>

                        <div style="float:left;width:30%">
                            <div class="section">
                                <div class="section-span"><span style="color:#ff0000;">* </span>标题：</div>
                                <div><input type="text" ng-model="data.title" name="title" id="title"
                                            class="form-control form-w"></div>
                            </div>
                            <div class="section">
                                <div class="section-span">tag：</div>
                                <div>
                                    <input type="text" ng-model="data.tag" name="tag" id="tag"
                                           class="form-control form-w">
                                </div>
                            </div>
                            <div class="section">
                                <div class="section-span">缩略图：</div>
                                <div>
                                    <input type="text" ng-model="data.image_url" name="image_url" id="image_url"
                                           class="form-control form-w">
                                </div>
                            </div>
                            <div class="section">
                                <div class="section-span">分类：</div>
                                <div>
                                    <select id="dir_id" class="form-control form-w" name="dir_id">
                                        <option
                                                ng-repeat="(key,item) in data.dirs"
                                                value="{{key}}"
                                                ng-selected="{{data.dir_id===key}}"
                                        >
                                            {{item}}
                                        </option>
                                    </select>
                                </div>
                            </div>
                            <div class="section">
                                <div class="section-span">描述：</div>
                                <div>
                                    <textarea rows="11" cols="24" style="margin-top:12px;" class="form-control form-w"
                                              name="desc" id="desc">{{data.desc}}</textarea>
                                </div>
                            </div>
                            <input type="hidden" name="a_id" id="a_id" ng-value="data.a_id">
                            <div class="section">
                                <div class="section-span">作者：</div>
                                <div>
                                    <input type="text" ng-model="data.created_by" name="created_by" id="created_by"
                                           class="form-control form-w">
                                </div>
                            </div>
                        </div>
                    </div>


                </div>
            </div>
        </div>
        <!-- 容器 ]]-->
    </div>
</body>
${require('@yunke/core/public_menu/footer.html')}
<script type="text/javascript" src="./index.js"></script>
</html>
